<template>
  <div>
      <div class="header">
        <div class="header_img"><div @click="back()" class="IMG"></div></div>
        <div class="title">企业信息</div>
        <div class="save">保存</div>
      </div>
          <div class="base_message">
            <div class="inputGroup">
              <div class="input_title base_title">公司logo</div>
              <img class="base_img" src="@/assets/images/companylogo.png">
            </div>
            <div class="inputGroup">
              <div class="input_title">公司名称</div>
              <input type="text" placeholder="请输入公司名称" class="input_value"/>
            </div>
            <div class="inputGroup">
              <div class="input_title">公司链接</div>
              <input type="text" placeholder="请输入公司链接" class="input_value"/>
            </div>
            <div class="work_describe">
              <div class="work_title">公司简介</div>
              <div class="work_text"><text-area classProp="experiment_text" placeholder="请输入40字以内的公司简介" @sendVal="setValue"></text-area></div>
            </div>
          </div>
      <div class="base_smatitle">工商信息</div>
          <div class="base_message">
              <div class="inputGroup">
                <div class="input_title base_title">注册号</div>
                <input type="text" placeholder="请输入公司注册号" class="input_value"/>
              </div>
              <div class="inputGroup">
                <div class="input_title">法人信息</div>
                <input type="text" placeholder="请输入法人姓名" class="input_value"/>
              </div>
              <div class="inputGroup">
                <div class="input_title">注册资金</div>
                <input type="text" placeholder="请输入公司注册资金" class="input_value"/>
              </div>
              <div class="inputGroup">
                <div class="input_title base_title">融资情况</div>
                <input type="text" placeholder="请选择公司融资情况" class="input_value"/>
              </div>
              <div class="inputGroup">
                <div class="input_title">公司地址</div>
                <input type="text" placeholder="请输入公司地址" class="input_value"/>
              </div>
              <div class="inputGroup">
                <div class="input_title">联系方式</div>
                <input type="text" placeholder="请输入公司联系方式" class="input_value"/>
              </div>
          </div>
      <div class="base_smatitle">公司情况</div>
          <div class="base_message">
            <div class="work_describe">
              <div class="work_title">公司介绍</div>
              <div class="work_text"><text-area classProp="experiment_text" placeholder="请输入公司介绍，可以是公司的企业理念，发展情况..."@sendVal="setValue"></text-area></div>
            </div>
          </div>
      <div class="backColor">
          <div class="baseMessage">
            <div class="base_header">发展历程</div>
            <img src="@/assets/images/add.png"  class="base_img" @click=""/>
          </div>
      </div>
      <div class="backColor">
      <div class="baseMessage">
        <div class="base_header">媒体报道</div>
        <img src="@/assets/images/add.png"  class="base_img" @click=""/>
      </div>
    </div>
      <div class="backColor">
      <div class="baseMessage">
        <div class="base_header">公司产品</div>
        <img src="@/assets/images/add.png"  class="base_img" @click=""/>
      </div>
    </div>
      <div class="backColor">
      <div class="baseMessage">
        <div class="base_header">公司成员</div>
        <img src="@/assets/images/add.png"  class="base_img" @click=""/>
      </div>
    </div>
  </div>
</template>

<script>
  import TextArea from '../person/TextArea'
    export default {
        name: "Enterprise",
      components: {
        TextArea
      },
      data(){
          return {
            workDescription:''
          }
      },
      methods: {
        back() {
            window.webkit.messageHandlers.enterprise.postMessage({});
          },
        setValue(text){
          this.workDescription = text
        },
        goWorkExperiment(){
          this.$router.push('/WorkExperiment')
        }
      }
    }
</script>

<style scoped>
  .header {
    box-sizing: border-box;
    position: relative;
    display: flex;
    height: 90px;
    background-color: #8ec43e;
    align-items: center;
    padding: 0 30px;
  }

  .header_img {
    flex:1;
   }

  .title {
    text-align: center;
    flex: 1;
    font-size: 34px;
    color: #ffff;
  }

  .save {
    text-align: right;
    font-size: 28px;
    color: #ffffff;
    flex: 1;
  }

  .base_message {
    margin-bottom: 25px;
  }

  .inputGroup {
    border-bottom: 1px solid #efefef;
    box-sizing: border-box;
    padding: 36px 30px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    height: 98px;
  }
  .base_title{
    flex:1;
  }
  .input_title {
    font-size: 28px;
    font-weight: 400;
    color: rgba(43, 43, 43, 1);
  }

  .input_value {
    text-align: right;
    flex: 1;
    font-size: 28px;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
  }

  .input_value::placeholder {
    font-size: 28px;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
  }

  .checkbox {
    position: relative;
    box-sizing: border-box;
    display: flex;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(153, 153, 153, 1);
    border-radius: 5px;
  }

  .flex {
    flex: 1;
  }

  .selected_img {
    position: absolute;
    left: -2px;
    top: -2px;
    transition: all 0.1s linear;
    opacity: 0;
    height: 30px;
    width: 30px;
  }

  .selected_show {
    opacity: 1;
  }
  .base_img{
    border-radius: 4px;
    width: 48px;
    height: 48px;
  }
  .work_describe {
    background-color: #ffffff;
    padding: 31px 35px 31px 30px;
  }

  .work_title {
    font-size: 28px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: rgba(43, 43, 43, 1);
  }

  .work_text {
    padding: 30px 0 0 1px;
  }
  .experiment_text{
    width: 100%;
    font-size: 24px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
    line-height: 36px;
    word-spacing: 5px;
  }
  .base_smatitle{
    font-size: 28px;
    font-weight: bold;
    margin: 40px 30px 30px 30px;
    color: rgba(142, 196, 62, 1);
  }
  .backColor{
    background-color: #ffffff;
    margin-bottom: 25px;
  }
  .baseMessage{
      box-sizing: border-box;
      display: flex;
      flex-direction: row;
      position: relative;
      padding: 40px 30px;
      align-items: center;
    }
  .base_header{
    flex: 1;
    font-size: 28px;
    font-weight: 400;
    color: rgb(43,43,43);
    box-sizing: border-box;
  }
  .base_img{
    border-radius: 4px;
    width: 48px;
    height: 48px;
  }
</style>
